/*package com.guage.es;

import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.InetSocketTransportAddress;  

public class GetTest {
	 Settings settings = ImmutableSettings.settingsBuilder()  
             //指定集群名称  
             .put("cluster.name", "elasticsearch")  
             //探测集群中机器状态  
             .put("client.transport.sniff", true).build();  
      
      * 创建客户端，所有的操作都由客户端开始，这个就好像是JDBC的Connection对象 
      * 用完记得要关闭 
        
     Client client = new TransportClient(settings)  
     .addTransportAddress(new InetSocketTransportAddress("192.168.1.106", 9300));  
     //在这里创建我们要索引的对象  
     GetResponse response = client.prepareGet("twitter", "tweet", "1")  
             .execute().actionGet();  
     System.out.println("response.getId():"+response.getId());  
     System.out.println("response.getSourceAsString():"+response.getSourceAsString());  
}
*/